@import './variables.scss';
@import './mixin.scss';

body {
  font-size: $font-size-small-x;
  margin: 0;
  font-family: $baseFontFamily;
  background-color: $layout-bg-color;
}
a:hover {
  color: $main-color;
}

>.el-scrollbar>.el-scrollbar__wrap {
  overflow-x: hidden;
  overflow-y: auto;
}

header {
  .header-container {
    width: 100%;
    height: 100%;
    .header-wrapper {
      width: 1440px;
      margin-left: auto;
      margin-right: auto;
      background-color: #fafafa;
    }
    .header-inner {
      height: $navbar-height;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .logo-info {
        display: flex;
        align-items: center;
        .logo-img {
          display: block;
          height: 34px;
          background-size: cover;
          width: 110px;
          margin-left: 22px;
          cursor: pointer;
          img {
            width: 100%;
            height: 100%;
          }
        }
        span {
          margin-left: 16px;
          color: #4A90E5;
          font-weight: 500;
          font-size: 22px;
          letter-spacing: 0px;
        }
      }
      .user-info {
        margin-right: 20px;
        display: flex;
        justify-content: flex-end;
        width: $user-info-width;
        align-items: center;
        .phone {
          display: flex;
          justify-content: space-between;
          align-items: center;
          font-size: 15px;
          img {
            width: 25px;
            height: 25px;
          }
          span {
            color: #606266;
            margin-left: 5px;
            margin-top: 2px;
          }
        }
        .el-dropdown {
          cursor: pointer;
        }
        .el-dropdown-link {
          height: 30px;
          display: flex;
          align-items: center;
          img {
            margin-right: 10px;
            width: 20px;
            height: 20px;
          }
        }
      }
      .navbar {
        width: calc(100% - #{ $logo-width } - #{ $user-info-width } - 30px);
        margin: 0 10px 0 20px;
        .el-menu.el-menu--horizontal {
          border-bottom: 0;
          > .el-menu-item {
            padding: 0;
            margin: 0 20px;
            &:hover {
              border-bottom: 2px solid $main-color;
              border-bottom-color: $main-color !important;
              transition: all 0.3s;
              color: $main-color;
            }
            &.is-active {
              color: $main-color;
            }
          }
        }
      }
    }
  }
}

.page-container {
  box-shadow: none !important;
  background-color: #fafafa;
  position: relative;
  display: flex;
  @include container($content-width);
  // margin: 20px auto;
  transition: 0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1);
  overflow: hidden;
  .activity-components-container {
    border-radius: 5px;
    margin: 10px;
    width: 100%;
    overflow: hidden;
    min-height: calc(100vh - #{ $footer-height } - #{ $navbar-height } - 40px);
    background-color: $white;
    padding: 0 15px 15px;
  }
  .side-container {
    width: $sidebar-width;
    background: #fff;
    margin-right: $split-width;
    box-shadow: 0px 0px 16px 0px #f5f4fc;
    .side-scroll {
      .el-scrollbar__wrap {
        overflow-x: hidden;
        overflow-y: auto;
      }
    }
    .sidebar-wrapper {
      &.ps-container {
        -ms-touch-action: auto;
        touch-action: auto;
        overflow: hidden !important;
        -ms-overflow-style: none;
      }
      .sidebar {
        >.el-menu>.el-menu-item, >.el-menu>.el-submenu>.el-submenu__title {
          a, .menu-title {
            padding-left: 5px;
          }
          >a>i {
            display: none;
          }
        }
        .el-menu {
          border: 0;
          background: none;
          .el-menu-item {
            height: $siderbar-menu-item-height;
            line-height: $siderbar-menu-item-height;
            &:hover {
              background-color: #fff;
            }
            a {
              height: 100%;
              color: $sidebar-text-color;
              display: block;
              font-size: 14px;
            }
            span {
              vertical-align: baseline;
            }
            &.is-active {
              a {
                color: $main-color;
                font-weight: bold;
              }
            }
          }
          .el-menu-item-group__title {
            padding: 0;
          }
          // 二级标题样式
          .el-submenu.is-active>.el-submenu__title {
            >.menu-title, >i {
              color: $main-color;
              font-weight: bold;
            }
          }
          .el-submenu.is-opened>.el-submenu__title>.menu-title {
            border-bottom: 0;
          }
          .el-submenu [class^=el-icon-] {
            margin-right: 0;
          }
          .el-submenu {
            // 二级标题样式
            .el-menu .el-submenu .el-submenu__title {
              padding-left: 35px!important;
              font-size: 14px;
            }
            // 三级标题样式
            .el-menu .el-submenu .el-menu .el-menu-item {
              padding-left: 50px!important;
            }
            .el-submenu__icon-arrow {
              font-size: 18px;
              right: 30px;
            }
            .el-submenu__title {
              font-size: 14px;
              height: $siderbar-menu-item-height;
              line-height: $siderbar-menu-item-height;
              margin-bottom: 10px;
              .menu-title {
                border-bottom: 1px solid #ebebec;
              }
            }
            // 子菜单
            .el-menu-item-group {
              .el-menu-item {
                height: $submenu-item-height;
                line-height: $submenu-item-height;
                padding: 0 20px!important;
                margin-bottom: 16px;
                a {
                  margin: 0;
                  font-size: 14px;
                  display: block;
                  text-decoration: none;
                  padding-left: 16px;
                  background-color: #f0f3f5;
                  i {
                    height: 24px;
                    line-height: 24px;
                    width: 24px;
                    background: $main-color;
                    color: #fff;
                    border-radius: 50%;
                    margin-right: 13px;
                    font-size: 14px;
                  }
                }
              }
              .el-menu-item.is-active {
                a {
                  color: $submenu-active-color;
                  background-color: $main-color;
                  font-weight: normal;
                }
              }
            }
          }
        }
      }
    }
  }
  .sidebar-body {
    width: 200px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 2px 10px 0 #dedede;
    color: #FFF;
    border-radius: 5px;
    background-color: #fff;
    .el-menu {
      border-right: none;
      .el-menu-item.is-active {
        background-color: #4A90E5;
        color: #fff;
      }
      .el-menu-item.is-active a {
        color: #fff;
      }
      .el-menu-item.is-active i {
        color: #fff;
        font-size: 20px;
        background-color: #4A90E5;
      }
      .el-menu-item {
        height: 35px;
        line-height: 35px;
        text-align: center;
        padding: 0;
        border-radius: 5px;
        margin: 8px 0;
        transition: none;
        min-width: auto;
        a {
          color:black;
          display: flex;
          align-items: center;
        }
        i {
          margin-right: 5px;
          font-size: 20px;
          color: #4A90E5;
        }
      }
      .el-submenu .el-submenu__title {
        height: 35px;
        line-height: 35px;
      }
      .el-menu-item-group__title {
        padding: 0;
      }
    }
  }
}
.online-application {
  height: 40px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: #4A90E5;
  border-radius: 5px;
  margin-bottom: 10px;
  font-weight: 700;
  cursor: pointer;
  .online-center {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  img {
    margin-right: 10px;
  }
}
.manage-commonOpinion {
  height: 32px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A90E5;
  background-color: white;
  border-radius: 5px;
  margin-top: 10px;
  box-shadow: 0 2px 10px 0 #dedede;
  cursor: pointer;
  .manage-center {
    display: flex;
    align-items: center;
  }
  i {
    margin-right: 10px;
  }
}
.manage-commonOpinion.active {
  background-color: #4A90E5;
  color: #FFF;
}
.el-dropdown-menu__item {
  line-height: 36px !important;
}
.navbar {
  width: 1440px;
  margin-left: auto;
  margin-right: auto;
  .el-menu {
    background-color: #4A90E5;
    padding: 0 40px;
  }
  .el-menu.el-menu--horizontal {
    border-bottom: 0;
    > .el-menu-item {
      padding: 0;
      height: 44px;
      line-height: 44px;
      width: 130px;
      text-align: center;
      color: white;
      transition: none;
      a {
        display: block;
      }
      &:hover {
        background-color: #1466cf;
      }
      &.is-active {
        background-color: #1466cf;
        border-bottom: 0;
      }
    }
    > .el-submenu {
      width: $single-menu-width;
      .el-submenu__title {
        height: $submenu-height;
        line-height: $submenu-height;
        color: $submenu-active-color;
        text-align: center;

        &:hover {
          background-color: $submenu-active-background-color;
        }

        .el-icon-arrow-down:before {
          color: $submenu-active-color;
        }
      }
    }
    > .is-active {
      background-color: $submenu-active-background-color !important;
      border-bottom: 0;
    }
    .submenu-popup {
      .el-submenu__title {
        text-align: left;
      }
      .el-menu--popup {
        background-color: $white;
        box-shadow: $submenu-popup-box-shadow;
      }
    }
    .el-menu-item-group {
      padding: 5px 0;
      .el-menu-item-group__title {
        padding: 0;
      }
      .el-menu-item {
        background-color: $white;
        height: $submenu-height;
        line-height: $submenu-height;
        &:hover {
          background-color: $submenu-hover-background-color;
        }
        a {
          color: $sidebar-text-color;
          display: inline-block;
          width: 100%;
          height: 100%;
        }
        i {
          color: $main-color;
          margin-right: 5px;
        }
      }
      .el-submenu {
        background-color: $white;
      }
      .is-active {
        background-color: $main-color;
        a,i {
          color: $white;
        }
        &:hover {
          background-color: $main-color;
        }
      }
    }
  }
  .el-menu--popup {
    padding: 0 !important;
  }
}
.footer {
  @include footer;
}
